package com.sw.test;

import org.junit.jupiter.api.Test;
import org.web3j.protocol.Web3j;
import org.web3j.protocol.http.HttpService;
import org.web3j.utils.Async;

public class Contract {
    Web3j web3j = Web3j.build(new HttpService("http://localhost:8545"), 1000,
            Async.defaultExecutorService());

    @Test
    public static void test() {
        String contractAddr = "0xb969309e1eD1f80b95A375bdED8454Ff60c811fe";
//        ECKeyPair ecKeyPair = ECKeyPair.create(BigInteger.valueOf(Byte.parseByte("0x4aee87ab615a6c77f969b8ae52bee57b361162c02bd75ff0e0276200ff27d93e")));
//        String address = "0xF586B944739aC174EdF5D6124D78645CA56f3561";
//        Credentials credentials = Credentials.create("0x4aee87ab615a6c77f969b8ae52bee57b361162c02bd75ff0e0276200ff27d93e");
//
//        BigInteger gasPrice = BigInteger.valueOf(2000000000);
//        BigInteger gas = BigInteger.valueOf(2000000000);
//        Erc20TokenWrapper tokenWrapper = new Erc20TokenWrapper(
//                contractAddr,web3j,credentials,gasPrice,gas);


    }

}
